package com.tinyseed.emcp.api.productionRule.service;

import com.tinyseed.emcp.api.productionRule.bean.ReductionInputDTO;
import com.tinyseed.emcp.api.productionRule.bean.ReductionOutputDTO;
import com.tinyseed.emcp.api.productionRule.entity.Reduction;
import com.tinyseed.hmxx.common.base.PageData;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ReductionService {

    List<ReductionOutputDTO> getList();

    Page getList(ReductionInputDTO inputDTO, int size, int current);

    ReductionOutputDTO save(ReductionInputDTO request);

    ReductionOutputDTO update(ReductionInputDTO request);

    ReductionOutputDTO getDataById(Long id);

    void delete(Long id);

    PageData page(int size, int current, ReductionInputDTO reductionInputDTO);

    void deleteBatch(Long[] ids);

    List<Reduction> getActiveList();
}
